﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Activation;

namespace CMTVision.Contracts
{
    [ServiceContract(Namespace = "CMT.Services", Name = "WidgetsService")]
    public interface IWidgetService
    {
        [OperationContract]
        bool AddWidget(int type, int index, string columnId, long templateId);

        [OperationContract]
        bool MoveWidget(int id, string fromColumnId, int fromIndex, string toColumnId, int toIndex);

        [OperationContract]
        bool RemoveWidget(int id);

        [OperationContract]
        bool TestService(int id);
    }
}
